// samsting : this file is auto create.

#include "Ess/2014-08-28/DescribeScalingActivitiesResponse.h"

namespace aliyun { namespace Ess {

DescribeScalingActivitiesResponse::DescribeScalingActivitiesResponse() {
}

const string& DescribeScalingActivitiesResponse::ScalingActivity::GetScalingActivityId(void) const {
  return ScalingActivityId_;
}

const string& DescribeScalingActivitiesResponse::ScalingActivity::GetScalingGroupId(void) const {
  return ScalingGroupId_;
}

const string& DescribeScalingActivitiesResponse::ScalingActivity::GetDescription(void) const {
  return Description_;
}

const string& DescribeScalingActivitiesResponse::ScalingActivity::GetCause(void) const {
  return Cause_;
}

const string& DescribeScalingActivitiesResponse::ScalingActivity::GetStartTime(void) const {
  return StartTime_;
}

const string& DescribeScalingActivitiesResponse::ScalingActivity::GetEndTime(void) const {
  return EndTime_;
}

int DescribeScalingActivitiesResponse::ScalingActivity::GetProgress(void) const {
  return Progress_;
}

const string& DescribeScalingActivitiesResponse::ScalingActivity::GetStatusCode(void) const {
  return StatusCode_;
}

const string& DescribeScalingActivitiesResponse::ScalingActivity::GetStatusMessage(void) const {
  return StatusMessage_;
}

const std::vector<DescribeScalingActivitiesResponse::ScalingActivity>& DescribeScalingActivitiesResponse::GetScalingActivities(void) const {
  return ScalingActivities_;
}

int DescribeScalingActivitiesResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeScalingActivitiesResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeScalingActivitiesResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeScalingActivitiesResponse::BaseKey(void) {
  return "DescribeScalingActivitiesResponse";
}

void DescribeScalingActivitiesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int ScalingActivities__length = 0;
  UnmarshallerInt(ScalingActivities__length, response_map, "DescribeScalingActivitiesResponse.ScalingActivities.Length");
  if(ScalingActivities__length >= 0) {
    ScalingActivities_.resize(ScalingActivities__length);
    for(int i1 = 0; i1 < ScalingActivities__length; i1++) {
      UnmarshallerString(ScalingActivities_[i1].ScalingActivityId_, response_map, "DescribeScalingActivitiesResponse.ScalingActivities["+string_ValueOfInt(i1)+"].ScalingActivityId");
      UnmarshallerString(ScalingActivities_[i1].ScalingGroupId_, response_map, "DescribeScalingActivitiesResponse.ScalingActivities["+string_ValueOfInt(i1)+"].ScalingGroupId");
      UnmarshallerString(ScalingActivities_[i1].Description_, response_map, "DescribeScalingActivitiesResponse.ScalingActivities["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(ScalingActivities_[i1].Cause_, response_map, "DescribeScalingActivitiesResponse.ScalingActivities["+string_ValueOfInt(i1)+"].Cause");
      UnmarshallerString(ScalingActivities_[i1].StartTime_, response_map, "DescribeScalingActivitiesResponse.ScalingActivities["+string_ValueOfInt(i1)+"].StartTime");
      UnmarshallerString(ScalingActivities_[i1].EndTime_, response_map, "DescribeScalingActivitiesResponse.ScalingActivities["+string_ValueOfInt(i1)+"].EndTime");
      UnmarshallerInt(ScalingActivities_[i1].Progress_, response_map, "DescribeScalingActivitiesResponse.ScalingActivities["+string_ValueOfInt(i1)+"].Progress");
      UnmarshallerString(ScalingActivities_[i1].StatusCode_, response_map, "DescribeScalingActivitiesResponse.ScalingActivities["+string_ValueOfInt(i1)+"].StatusCode");
      UnmarshallerString(ScalingActivities_[i1].StatusMessage_, response_map, "DescribeScalingActivitiesResponse.ScalingActivities["+string_ValueOfInt(i1)+"].StatusMessage");
    } // for(int i1 = 0; i1 < ScalingActivities__length; i1++) {
  } // if(ScalingActivities__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "DescribeScalingActivitiesResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeScalingActivitiesResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeScalingActivitiesResponse.PageSize");
}


} } // namespace aliyun { namespace Ess {

// end of file 
